package icu.qx.diagram.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.annotation.Excels;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Drawback {
    /** 产品缺陷 */
    @Excel(name = "产品缺陷")
    private String drawbackName;
    /** 产品编码 */
    @Excel(name = "产品编码")
    private String reportPCode;
    /** 产品名称 */
    @Excel(name = "产品名称")
    private String pdName;
    /** 产品型号 */
    @Excel(name = "产品型号")
    private String pdGoodType;
    /**
     * 产品分类
     * */
    private Long pdGoodClass;
    @Excels({
            @Excel(name = "产品分类", targetAttr = "gcName", type = Excel.Type.EXPORT)
    })
    private GbsGoodClass gbsGoodClass;
    /** 生产数量 */
    private Integer reportCompleteNum;
    /** 合格数量 */
    private Integer reportGood;
    /** 缺陷产品数量 */
    @Excel(name = "缺陷产品数量")
    private Integer reportBad;
    /** 质检时间  */
    private String reportTime;
    /** 开始时间 */
    private String beginCreateTime;
    /** 结束时间 */
    private String endCreateTime;
    /** 制单人 */
    private String creatorName;
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("drawbackName", getDrawbackName())
                .append("reportPCode", getReportGood())
                .append("pdName", getPdName())
                .append("pdGoodType", getPdGoodType())
                .append("pdGoodClass", getPdGoodClass())
                .append("reportCompleteNum", getReportCompleteNum())
                .append("reportGood", getReportGood())
                .append("reportBad", getReportBad())
                .append("reportTime", getReportTime())
                .append("gbsGoodClass", getGbsGoodClass())
                .append("creatorName", getCreatorName())
                .toString();
    }
}
